﻿// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.

using System.Text;
using ImageMagick;

namespace Magick.NET.Tests;

public partial class DrawableTextEncodingTests
{
    public class TheEncodingProperty
    {
        public void ShouldAllowNullValue()
        {
            var encoding = new DrawableTextEncoding(Encoding.UTF8);
            encoding.Encoding = null;

            using var image = new MagickImage(MagickColors.Firebrick, 10, 10);
            image.Draw(encoding);
        }
    }
}
